EXERCISE 1 
------------
include <stdio.h>
#include <string>
#include <iostream>
#include <sstream>
using namespace std;
int main(int argc, char** argv[])
{
	int numbers[7]; //this creates an array for the numbers 
	int loopNumb = 0;
	string player2Guess;
	cout << "Player 1 enter your numbers now" << endl << endl;


	for (loopNumb = 0; loopNumb < 7; loopNumb++) //this loop causes the user (player 1 ) to enter the values that the 2nd user ( player 2 ) would guess.
	{
		cout << "Enter number " << loopNumb + 1 << " >";
		string input = "";
		stringstream stream;
		getline(cin, input);
		stream.str(input);
		stream >> numbers[loopNumb];
		stream.clear();
	}
	for (int I = 0; I < 100; I++)
	{
		cout << endl;
	}
	loopNumb = 0;
	cout << "Player 2 the first value is " << numbers[loopNumb] << endl;
	

	for (loopNumb = 0; loopNumb < 6;loopNumb++)
	{
		cout << "Higher (h) or Lower (l) > ";
		getline(cin, player2Guess);
		if (player2Guess == "h")
		{
			if (numbers[loopNumb] < numbers[loopNumb + 1])
			{
				cout << "Correct,the next value is " << numbers[loopNumb + 1] << endl;
			}
			else
			{
				answer = "wrong";
				cout << "You sid higher, you were wrong.Sorry player 2 but player 1 wins " << endl;
				break;
			}
		}
		else if(player2Guess=="l")
		{
			if (numbers[loopNumb] > numbers[loopNumb + 1])
			{
				cout << "Correct,the next value is " << numbers[loopNumb + 1] << endl;
			}
			else
			{
				answer = "wrong";
				cout << "Incorrect answer, sorry player 2 but player 1 wins " << endl;
				break;
			}
		}
		else
		{
			cout << "Please enter either h or l" << endl;
			loopNumb--;

		}
	}
	if (loopNumb == 6)
	{
		cout << "Congratulations player 2 on Beating player 1 with a score of "<<loopNumb+1<< " out of 7" << endl;
	}
	
	

	//pause
	cin.get();
	return 0;
}



//EXERCISE 2
-----------------------
#include <stdio.h>
#include <string>
#include <iostream>
#include <sstream>
using namespace std;
int main(int argc, char** argv[])
{





	//pause
	cin.get();
	return 0;
}

//EXERCISE 3
-----------------------
#include <stdio.h>
#include <string>
#include <iostream>
#include <sstream>
using namespace std;
int main(int argc, char** argv[])
{

	




	//pause
	cin.get();
	return 0;
}